home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat7 / t3270.z / t3270
Encoding:
Text File  |  1998-10-20  |  3.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4. TTTT3333222277770000((((7777))))                                                              TTTT3333222277770000((((7777))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      t3270 - Silicon Graphics 3270 interface card
  10.  
  11. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  12.      This is the driver for the Silicon Graphics 3270 interface card.  The
  13.      card is a communication adapter for the connection of a Silicon Graphics
  14.      4D system to a IBM 3270 Cluster Controller using the 3270 Coax Type A
  15.      protocol.
  16.  
  17.      For Control Unit Terminal (CUT) operations, the coax emulation code is
  18.      soft-loaded by the driver onto the card to maintain the session, and to
  19.      manage the contents of the display buffer.
  20.  
  21.      For Distributed Function Terminal (DFT) operations, the coax emulation
  22.      code is to maintain the communication session, while the driver is
  23.      responsible for the decoding and execution of the SNA data stream.
  24.  
  25.      The interface between the coax emulation code and the driver is
  26.      maintained as a dual-ported communication memory area, while the
  27.      interface between the driver and the application level emulator
  28.      (t3270(1)) is through ioctl.
  29.  
  30.           #include <sys/t3270reg.h>
  31.           di_info_t diaginfo;
  32.  
  33.           ioctl(fd,UCODE_DLOAD,addr);/* microcode download */
  34.           ioctl(fd,START_8344,0);/* start the DP8344 */
  35.           ioctl(fd,EM_CTRL,ctrl_word);/* set emulation control */
  36.           ioctl(fd,SET_DID,id);/* set device id */
  37.           ioctl(fd,START_COMM,0);/* start communication */
  38.           ioctl(fd,STOP_COMM,0);/* stop communication */
  39.           ioctl(fd,CUR_UD,cursor);/* get cursor */
  40.           ioctl(fd,SCR_UD,scr);/* update screen */
  41.           ioctl(fd,SEND_KEY,key);/* send key code */
  42.           ioctl(fd,BEGIN_MSG,0);/* begin messaging mode */
  43.           ioctl(fd,STOP_MSG,0);/* stop messaging mode */
  44.           ioctl(fd,SEND_MSG,msg_count);/* send message */
  45.           ioctl(fd,RECV_MSG,addr);/* receive message */
  46.           ioctl(fd,SET_TIME,t);/* set timeout */
  47.           ioctl(fd,SELF_TST,&diaginfo);/* self test */
  48.           ioctl(fd,REG_TST,&diaginfo);/* register test */
  49.           ioctl(fd,DP_MEM_TST,&diaginfo);/* data memory test */
  50.           ioctl(fd,IT_MEM_TST,&diaginfo);/* instruction memory test */
  51.  
  52.           typedef struct {
  53.                u_int           pattn_w;/* pattern written */
  54.                u_int           pattn_r;/* pattern read */
  55.                u_short         err_addr;/* where error occur */
  56.                u_char          err_flag;/* type of error */
  57.                u_char          cycles;/* # of test cycle */
  58.           }    di_info_t;      /* diag info */
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. TTTT3333222277770000((((7777))))                                                              TTTT3333222277770000((((7777))))
  71.  
  72.  
  73.  
  74.      Only one device file may be opened at a time.
  75.  
  76. FFFFIIIILLLLEEEESSSS
  77.      /dev/t3270
  78.  
  79. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  80.      t3270(1)
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.